/*
 * Copyright (c) 2005, 2014 vacoor
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
Ext.define('Nothing.model.Module', {
    extend: 'Ext.data.Model',

    idProperty: 'id',
    fields: [
        'name',
        'text',
        'value',
        'url',
        'sort',
        'enabled',
        'predefined',
        'controller',
        'xtype',

        // 多对一
        'parent.id',    // auto mapping "parent.id"
        { name: 'parent.name', persist: false },
        // { name: 'leaf', type: 'bool', persist: false }
        { name: 'leaf', type: 'bool' }
    ]
});
